# -*- coding: utf-8 -*-
# @Time : 2021/9/17 15:19
# @Author : Mr  jelis
# @Email : 1402615849@qq.com
# @File : base_case.py
# @Project : mryx_test
import unittest
from appium import webdriver
"""用例基类"""
class BaseCase(unittest.TestCase):
    def setUp(self):
        desired_capabilities = {
            "platformName": "Android",
            "deviceName": "127.0.0.1:62001",
            "platformVersion": "7.1.2",
            "appPackage": " cn.missfresh.application",
            "appActivity": "cn.missfresh.module.main.view.MainActivity",
            "noReset": True
        }
        self.driver= webdriver.Remote("http://localhost:4723/wd/hub", desired_capabilities)
        self.driver.implicitly_wait(40)
    def tearDown(self):
        self.driver.quit()